import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  
  // {
  //   path: "/package/goBuy/:id",
  //   component: () => import("../views/packagePage/GoBuy.vue")
  // },
  // {
  //   path: "/package/pay/:id",
  //   component: () => import("../views/packagePage/Pay.vue")
  // },
  // 提现记录页面
  {
    path: "/record",
    component: () => import("../views/RecordShow.vue")
  },

  // 添加提现账户页面
  {
    path: "/shop",
    component: () => import("../views/shopPage/Index.vue")
  },
  {
    path: "/oms",
    component: () => import("../views/oms/Oms.vue")
  },
  
  // 提现页面
  {
    path: "/advWithdraw",
    component: () =>
      import("../views/Withdraw/Withdraw.vue")
  },

  // 提现失败详情页面
  {
    path: "/detail/:id",
    component: () =>
      import("../components/Withdrawlist.vue")
  },
  // 详情页
      {
            path: "/oms/details/:id",
            component: () =>
                import ("../views/oms/details.vue"),
            meta: {
                title: "详情页"
            },
        },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
